package com.xbongbong.pro.customerstatement.pojo.dto.batch;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Description
 * @author: shian
 * @date : 2021/1/8
 */
@Getter
@Setter
public class StatementBatchDeleteDTO extends BaseDTO {

    private static final long serialVersionUID = -4774756994828973408L;
    @NotNull(message = "{dto.msg.quotationDeleteBatch.dataIdList.NotNull}")
    @Size(max = 1)
    private List<Long> dataIdList;

    /**
     * 1 为单个删除 0 为 批量删除 其他情况默认批量删除处理
     */
    private Integer singleFlag;
    /**
     * 是否是从业务规则来的 1：是
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isBusinessRule;
}
